<?php
global $options;
foreach ($options as $value) {
    if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; }
    else { $$value['id'] = get_option( $value['id'] ); }
    }
?>
    </div><!-- #main -->
    
<?php thematic_abovefooter(); ?>    

	<div id="footer">
        <?php get_sidebar('subsidiary'); ?>
        <div class="brandslider"><?php //include (ABSPATH . '/wp-content/plugins/logo-slideshow/logo-slider.php'); ?></div>
	</div><!-- #footer -->
<?php 
$iscampaignpage=pods_url_variable(-2);
$referer = $_SERVER['HTTP_REFERER'];
if ($referer == "") { //If not, set referrer as your domain
$domain = 'buzzr.in';
} else {
$domain = parse_url($referer); //If yes, parse referrer
}
if ($iscampaignpage=='deals' && $domain[host] != 'buzzr.in'){
?>
<div class="footerlinks">Powered by <a href="http://buzzr.in">Buzzr</a></div>
<?php
}
else{
?>
	<div class="footerlinks"><a href="http://buzzr.in">Home</a> | <a href="http://buzzr.in/advertisers">Advertisers</a> | <a href="http://buzzr.in/terms-conditions">Terms & Conditions</a></div><br />
An Enthrall Media Creation
<div class="medianetwork"><?php//Show a "Login with Facebook" buttonjfb_output_facebook_btn();//Initialize the Facebook API (and any login buttons on the page)jfb_output_facebook_init();//Output the JS callback that redirects us to process_login.phpjfb_output_facebook_callback();?>
<a href="http://www.facebook.com/BuzzrIndia"><img src="http://buzzr.in/wordpress/wp-content/uploads/2009/11/big_facebook.png"></a>
<a href="http://twitter.com/buzzrindia"><img src="http://buzzr.in/wordpress/wp-content/uploads/2009/11/big_twitter.png"></a>
</div>
<?php
}
?>
<?php thematic_belowfooter(); ?>  

</div><!-- #wrapper .hfeed -->

<?php wp_footer(); ?>

<?php thematic_after(); ?>
<script type="text/javascript">
//<![CDATA[
(function() {
var links = document.getElementsByTagName('a');
var query = '?';
for(var i = 0; i < links.length; i++) {
if(links[i].href.indexOf('#disqus_thread') >= 0) {
query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
}
} 
	document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/buzzr/get_num_replies.js' + query + '"></' + 'script>');
})();
//]]>
</script>
</body>
</html>